package com.tencent.qf.team.service.impl;

import com.tencent.qf.team.dal.DmAppCostCenterLevelDetail;
import com.tencent.qf.team.dal.DmAppCostCenterTaskDetail;
import com.tencent.qf.team.dao.DmAppCostCenterLevelDetailDao;
import com.tencent.qf.team.dao.DmAppCostCenterTaskDetailDao;
import com.tencent.qf.team.dto.request.DmAppCostCenterLevelDetailRequest;
import com.tencent.qf.team.dto.request.DmAppCostCenterTaskDetailRequest;
import com.tencent.qf.team.service.CostCenterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CostCenterServiceImpl implements CostCenterService {

    @Autowired
    private DmAppCostCenterLevelDetailDao dmAppCostCenterLevelDetailDao;
    @Autowired
    private DmAppCostCenterTaskDetailDao dmAppCostCenterTaskDetailDao;

    /**
     * 成本中心等级明细
     *
     * @param request
     * @return
     */
    @Override
    public List<DmAppCostCenterLevelDetail> levelDetail(DmAppCostCenterLevelDetailRequest request) {
        List<DmAppCostCenterLevelDetail> list = dmAppCostCenterLevelDetailDao.levelDetail(request);
        return list;
    }

    /**
     * 成本中心任务统计
     *
     * @param request
     * @return
     */
    @Override
    public List<DmAppCostCenterTaskDetail> taskDetail(DmAppCostCenterTaskDetailRequest request) {
        List<DmAppCostCenterTaskDetail> list = dmAppCostCenterTaskDetailDao.taskDetail(request);
        return list;
    }
}
